<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="include/base.jsp" %>
<!DOCTYPE HTML>
<%
	pageContext.setAttribute("top", "a");
%>
<html lang="zh-CN">
<head>
	<meta charset="UTF-8">
	<title>凯盛项目管理系统</title>
	<link rel="shortcut icon" href="../img/favicon.ico" >
	<link rel="stylesheet" href="../css/bootstrap.min.css">
	<script type="text/javascript" src="../js/jquery.js"></script>
	<script type="text/javascript" src="../js/bootstrap.min.js"></script>
	
    <link rel="stylesheet" type="text/css" media="screen" href="../css/reset.css" />
    <link rel="stylesheet" type="text/css" media="screen" href="../css/jquery.ketchup.css" />
    <link rel="stylesheet" type="text/css" media="screen" href="../css/main.css" />
    
    <script type="text/javascript" src="../js/jquery.ketchup.js"></script>
    <script type="text/javascript" src="../js/jquery.ketchup.messages.js"></script>
    <script type="text/javascript" src="../js/jquery.ketchup.validations.basic.js"></script>
    <script type="text/javascript" src="../js/main.js"></script>
    
    <link href="../css/select2.css" rel="stylesheet"/>
    <script src="../js/select2.js"></script>
    
	
	<link rel="stylesheet" href="../css/bootstrap-responsive.css">
	<link rel="stylesheet" href="../css/docs.css">
	
	
	<style type="text/css">
	.select2-container{
		margin-left:0px;
	}
    	.select2-search-choice-close{
    	
    		display: block;
			width: 12px;
			height: 13px;
			position: absolute;
			right: 3px;
			top: 4px;
			font-size: 1px;
			outline: none;
			background: url('img/select2.png') right top no-repeat;
			    	}
    </style>
    
    
    
</head>
<body class="body" style="padding-left:300px;">
	
	<%@ include file="include/top.jsp" %>
	
	
	<div class="container">
	  <div class="row">
		<div class="span9">
			<form class="form-horizontal" style="border:0px;" id="example1" method="post" action="newproject.jspx">
        <fieldset>
          <h1 style="font-size:24px;">开始一个新项目</h1>
          <hr/>
           
          <div class="control-group">
            <label class="control-label" for="input01">项目名称:</label>
            <div class="controls">
              <input type="text" x-webkit-speech="undefined" id="ex1_username" class="span5 validate(required)" name="projectname">
              
            </div>
          </div>
          
          <div class="control-group">
            <label class="control-label" for="input01">项目描述:</label>
            <div class="controls">
              <textarea rows="4" x-webkit-speech="undefined" id="ex1_username" class="span5 validate(required)" name="descript"></textarea>
            </div>
          </div>
          <div class="control-group">
            <label class="control-label" for="multiSelect">负责人:</label>
            <div class="controls">
              <select id="ex1_username" x-webkit-speech="undefined" class="span5 validate(required)" name="fuce">
                <option></option>
                <c:forEach items="${list }" var="s">
                	<option value="${s.id }">${s.username }</option>
                </c:forEach>
                
               
              </select>
            </div>
          </div>
         <div class="control-group">
            <label class="control-label" for="input01">项目成员:</label>
            <div class="controls">
              <select id="ex1_username" multiple x-webkit-speech="undefined" class="span5 word" name="projectperson" style="margin-left:0px;">
                <option></option>
                <c:forEach items="${list }" var="s">
                	<option value="${s.id }">${s.username }</option>
                </c:forEach>
              </select>
            </div>
            <input type="hidden" id="value" name="value"/>
          </div>
          
          <div class="form-actions">
            <button type="submit" class="btn btn-primary">保存</button>
            <a href="gomain.jspx" class="btn" onclick="location.back()">返回</a>
          </div>
        </fieldset>
      </form>          
          	
		</div>
		
	  </div>
	</div>
	<script type="text/javascript">
		$(document).ready(function(){
			
			$(".word").select2();
			$(".word").click(function(){
				var v = $(".word").select2("val");
				$("#value").val(v);
			});
			
			  var editor = new wysihtml5.Editor("textarea", {
			    toolbar:      "toolbar",
			    parserRules:  wysihtml5ParserRules
			  });
			
			
			
		});
		</script>
</body>
</html>